package com.ruoyi.controller.server;

import com.ruoyi.common.core.domain.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(tags = "测试接口")
@RestController
@RequestMapping("/api/server")
public class ApiServerController {

    @ApiOperation("服务状态")
    @GetMapping("/status")
    public ApiResult<Void> status() {
        return ApiResult.success("service status is normal");
    }

    @ApiOperation("测试接口")
    @GetMapping("/test")
    public ApiResult<Void> test() {
        return ApiResult.success();
    }
}
